<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 1.0 Transitional//EN">
<html>
  <head>
    
    <title>员工信息修改</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
   
<div class="pageContent">
<s:debug></s:debug>
	<form method="post"  action="<%=basePath %>system/system_update_List.action" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent" layoutH="56">
			<p>
				<label>员 工 号：</label>
				<input name="emp.empId" type="text" size="32" value="<s:property value="#parameters.empId"/>" readonly="readonly"/>
			</p>
			<p>
				<label>员工姓名：</label>
				<input name="emp.empName" class="required" type="text" size="32" value="<s:property value="emp.empName"/>" />
			</p>
			<p>
				<label>身份证号：</label>
				<input name="emp.empCardId" class="required" type="text" size="32" value="<s:property value="emp.empCardId"/>" />
			</p>
			<p>
				<label>性别：</label>
				<s:if test="emp.empGender==\"男\"">
					<select name="emp.empGender" class="required combox">
						<option value="">请选择</option>
						<option value="男" selected>男</option>
						<option value="女" >女</option>
					</select>
				</s:if>
				<s:else>
					<select name="emp.empGender" class="required combox">
						<option value="">请选择</option>
						<option value="男" >男</option>
						<option value="女" selected>女</option>
					</select>
				</s:else>
			</p>
			<p>
				<label>年龄：</label>

				<input name="emp.empAge" class="digits" type="text" size="32"  maxlength="3" value="<s:property value="emp.empAge"/>" onkeyup="javascript:this.value=this.value.replace(/[^\d]/g,'');
if(this.value<0){
this.value=0;};
if(this.value>200){this.value=200;}"
 onchange="javascript:this.value=this.value.replace(/[^\d]/g,'');
if(this.value<0){
this.value=0;};
if(this.value>200){this.value=200;}" /> 
			</p>
			<p>
				<label>婚姻状况：</label>
				
				<s:if test="emp.isMarried=0">
					<select name="emp.isMarried" class="required combox">
						<option value="">请选择</option>
						<option value="1">是</option>
						<option value="0" selected>否</option>
					</select>
				</s:if>
				<s:else>
					<select name="emp.isMarried" class="required combox">
						<option value="">请选择</option>
						<option value="1" selected>是</option>
						<option value="0" >否</option>
					</select>
				</s:else>
			</p>
			<p>
				<label>职位：</label>
				<input type="text" size="32" name="emp.position" value="<s:property value="emp.position"/>"/>
			</p>
			<p>
				<label>专业：</label>
				<input type="text" size="32" name="emp.professional" value="<s:property value="emp.professional"/>"/>
			</p>
			<p>
				<label>职称：</label>
				<input type="text" size="32" name="emp.titles" value="<s:property value="emp.titles"/>"/>
			</p>
			<p>
				<label>文化程度：</label>
				<select name="emp.education" class="required combox">
					<option value="">请选择</option>
					<option value="小学">小学</option>
					<option value="初中" >初中</option>
					<option value="高中" >高中</option>
					<option value="大学及以上" selected>大学及以上</option>
				</select>
			</p>
			<p>
				<label>家庭住址：</label>
				<input type="text" name="emp.empAddr"  size="32" value="<s:property value="emp.empAddr"/>"/>
			</p>
			<p>
				<label>部门名称：</label>
				<input type="text" size="32" name="emp.empDepName"  value="<s:property value="emp.empDepName"/>" />
			</p>

			<p>
				<label>爱好：</label>
				<input type="text" size="32" name="emp.hobby" value="<s:property value="emp.hobby"/>"/>
			</p>
			<p>
				<label>联系方式：</label>
				<input type="text" size="32"  name="emp.contact" value="<s:property value="emp.contact"/>"/>
			</p>
			<p>
				<label>密码：</label>
				<s:if test="emp.empPwd == null">
					<input type="text" size="32"  name="emp.empPwd" value=""/>
				</s:if>
				<s:else>
					<input type="text" size="32"  name="emp.empPwd" value="<s:property value="emp.empPwd"/>"/>
				</s:else>
				
			</p>
			
		</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>       
  </body>
</html>